JMSetFrameSize
Sets the size of a frame.
OSStatus JMSetFrameSize ( JMFrameRef frame, const Rect* newSize);
frame
- The frame whose size you want to set.
newSize
- The coordinates of the new frame size in pixels.
- function result
- A result code; see "JManager Result Codes".
DISCUSSION
The function automatically calculates the width and height of the frame, given the coordinates you pass in thenewSize
parameter. The top left corner indicates the global position of this frame, so you can use this to update the position of the frame if it gets moved.
- IMPORTANT
- On the Mac OS platform, the global frame coordinates (0,0) does not map to the actual top left corner of the screen, but rather is offset to accomodate the title and side bars of the corresponding window as well as the menu bar.
![]()
SEE ALSO
- The
JMGetFrameSize
function.